package com.qn.wechat.dao.entity;

import org.springframework.context.annotation.Primary;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name="wechataccount")
public class WeChatAccountEntity {


    /**
     *
     */
    @Id
    @Column(name="WId",nullable=false)
    private long wid=0;

    /**
     *
     */
    @Column(name="WName")
    private String wname;

    /**
     *
     */
    @Column(name="AppId")
    private String appid;

    /**
     *
     */
    @Column(name="AppSecrect")
    private String appsecrect;

    /**
     *
     */
    @Column(name="AccountContent")
    private String accountcontent;

    /**
     *
     */
    @Column(name="CreateTime",nullable=true)
    private Date createtime;


    /**
     *
     */
    @Column(name="Status")
    private Integer status=0;

    /**
     *
     */
    @Column(name="PromoteStatus")
    private Integer promotestatus;



    /**
     * 设置
     * @param wid
     */
    public void setWid(long wid){
        this.wid=wid;
    }

    /**
     * 获取
     * @return WId -
     */
    public long getWid(){
        return this.wid;
    }

    /**
     * 设置
     * @param wname
     */
    public void setWname(String wname){
        this.wname=wname;
    }

    /**
     * 获取
     * @return WName -
     */
    public String getWname(){
        return this.wname;
    }

    /**
     * 设置
     * @param appid
     */
    public void setAppid(String appid){
        this.appid=appid;
    }

    /**
     * 获取
     * @return AppId -
     */
    public String getAppid(){
        return this.appid;
    }

    /**
     * 设置
     * @param appsecrect
     */
    public void setAppsecrect(String appsecrect){
        this.appsecrect=appsecrect;
    }

    /**
     * 获取
     * @return AppSecrect -
     */
    public String getAppsecrect(){
        return this.appsecrect;
    }

    /**
     * 设置
     * @param accountcontent
     */
    public void setAccountcontent(String accountcontent){
        this.accountcontent=accountcontent;
    }

    /**
     * 获取
     * @return AccountContent -
     */
    public String getAccountcontent(){
        return this.accountcontent;
    }

    /**
     * 设置
     * @param createtime
     */
    public void setCreatetime(Date createtime){
        this.createtime=createtime;
    }

    /**
     * 获取
     * @return CreateTime -
     */
    public Date getCreatetime(){
        return this.createtime;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Integer status){
        this.status=status;
    }

    /**
     * 获取
     * @return Status -
     */
    public Integer getStatus(){
        return this.status;
    }

    /**
     * 设置
     * @param promotestatus
     */
    public void setPromotestatus(Integer promotestatus){
        this.promotestatus=promotestatus;
    }

    /**
     * 获取
     * @return PromoteStatus -
     */
    public Integer getPromotestatus(){
        return this.promotestatus;
    }


    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append("Wechataccount[");
        sb.append("wid=");
        sb.append(wid);
        sb.append(",wname=");
        sb.append(wname);
        sb.append(",appid=");
        sb.append(appid);
        sb.append(",appsecrect=");
        sb.append(appsecrect);
        sb.append(",accountcontent=");
        sb.append(accountcontent);
        sb.append(",createtime=");
        sb.append(createtime);
        sb.append(",status=");
        sb.append(status);
        sb.append(",promotestatus=");
        sb.append(promotestatus);
        sb.append("]");
        return sb.toString();
    }
}
